package st.business.tepth.business.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author zhangyu
 * @date 2019/6/4
 */
public class MaintainPlanBean implements Parcelable {

    /**
     * id : 1
     * name : 88205(123) 一级保养
     * url : http://www.xxx.png
     * no : 32212
     * busType : CKSU7888
     * company : 运营公司234路
     * register : 2018年12月1日
     */

    private int id;
    private String name;
    private String url;
    private String no;
    private String type;
    private String company;
    private String register;
    private String mileage;
    private int repairStatus;
    private String user_name;
    private String mobile_no;
    private String job_no;
    //气
    private String fuelType;
    //气耗量
    private String fuelPerKm;
    //机油耗量
    private String engineOil;
    //距上次保养里程
    private String kmAfterLastVm;
    //总里程
    private String kmTotal;
    private boolean isSelected;

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getMobile_no() {
        return mobile_no;
    }

    public void setMobile_no(String mobile_no) {
        this.mobile_no = mobile_no;
    }

    public String getJob_no() {
        return job_no;
    }

    public void setJob_no(String job_no) {
        this.job_no = job_no;
    }

    public String getFuelType() {
        return fuelType;
    }

    public void setFuelType(String fuelType) {
        this.fuelType = fuelType;
    }

    public String getFuelPerKm() {
        return fuelPerKm;
    }

    public void setFuelPerKm(String fuelPerKm) {
        this.fuelPerKm = fuelPerKm;
    }

    public String getEngineOil() {
        return engineOil;
    }

    public void setEngineOil(String engineOil) {
        this.engineOil = engineOil;
    }

    public String getKmAfterLastVm() {
        return kmAfterLastVm;
    }

    public void setKmAfterLastVm(String kmAfterLastVm) {
        this.kmAfterLastVm = kmAfterLastVm;
    }

    public String getKmTotal() {
        return kmTotal;
    }

    public void setKmTotal(String kmTotal) {
        this.kmTotal = kmTotal;
    }

    public int getRepairStatus() {
        return repairStatus;
    }

    public void setRepairStatus(int repairStatus) {
        this.repairStatus = repairStatus;
    }

    public String getMileage() {
        return mileage;
    }

    public void setMileage(String mileage) {
        this.mileage = mileage;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getRegister() {
        return register;
    }

    public void setRegister(String register) {
        this.register = register;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeString(this.url);
        dest.writeString(this.no);
        dest.writeString(this.type);
        dest.writeString(this.company);
        dest.writeString(this.register);
    }

    public MaintainPlanBean() {
    }

    protected MaintainPlanBean(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.url = in.readString();
        this.no = in.readString();
        this.type = in.readString();
        this.company = in.readString();
        this.register = in.readString();
    }

    public static final Parcelable.Creator<MaintainPlanBean> CREATOR = new Parcelable.Creator<MaintainPlanBean>() {
        @Override
        public MaintainPlanBean createFromParcel(Parcel source) {
            return new MaintainPlanBean(source);
        }

        @Override
        public MaintainPlanBean[] newArray(int size) {
            return new MaintainPlanBean[size];
        }
    };
}
